"""
    《最伟大的作品》的简谱
    采用 tone.py 里面预定义的频率

    参考资料：
    简谱教学入门（上），看懂音符、记住音阶：https://zhuanlan.zhihu.com/p/349054725
    树莓派GPIO：https://pinout.xyz/pinout/3v3_power
    简谱参考：https://www.bilibili.com/read/cv17437857
    简谱参考2：https://www.bilibili.com/video/BV1qr4y1u7jD
"""

# 四分音符间隔时间为 1s
quarter = 1
# 八分音符间隔时间为 0.5s
eighth = 0.5

notation = [

    # 前奏 2022年7月18日14:58:26
    # 3166 * 4
    ['NOTE_E5', 0.5 * eighth],    # high 3
    ['NOTE_C5', 0.5 * eighth],    # high 1
    ['NOTE_A4', 0.5 * eighth],    # 6
    ['NOTE_A5', 0.5 * eighth],    # high 6

    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A5', 0.5 * eighth],  # high 6

    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A5', 0.5 * eighth],  # high 6

    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A5', 0.5 * eighth],  # high 6

    # 3177 * 4
    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_B4', 0.5 * eighth],  # 7
    ['NOTE_B5', 0.5 * eighth],  # high 7

    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_B4', 0.5 * eighth],  # 7
    ['NOTE_B5', 0.5 * eighth],  # high 7

    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_B4', 0.5 * eighth],  # 7
    ['NOTE_B5', 0.5 * eighth],  # high 7

    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_B4', 0.5 * eighth],  # 7
    ['NOTE_B5', 0.5 * eighth],  # high 7

    # 3166 再乘4
    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A5', 0.5 * eighth],  # high 6

    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A5', 0.5 * eighth],  # high 6

    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A5', 0.5 * eighth],  # high 6

    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A5', 0.5 * eighth],  # high 6

    # ----------------------------- 第一段小高潮  2022年7月18日12:28:48----------------
    # 小船静静往返
    ['0', eighth],  # 0
    ['NOTE_E4', eighth],  # 3
    ["NOTE_A4", eighth],  # 6
    ["NOTE_E5", eighth],  # high 3
    ['NOTE_E5', 1.5 * eighth],  # high 3
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_F5', quarter],  # high 4

    # 马蹄斯的海岸
    ['0', eighth],  # 0
    ['NOTE_E4', eighth],  # 3
    ['NOTE_GS4', eighth],  # 5#
    ['NOTE_D5', eighth],  # high 2
    ['NOTE_D5', 1.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_E5', quarter],  # high 3

    # 星空下的夜晚
    ['0', eighth],
    ['NOTE_E4', eighth],  # 3
    ['NOTE_A4', eighth],  # 6
    ['NOTE_C5', eighth],  # high 1
    ['NOTE_C5', eighth],  # high 1
    ['NOTE_B4', 0.5 * eighth],  # 7
    ['NOTE_D5', quarter],  # high 2

    # 交给梵谷点燃
    ['0', eighth],
    ['NOTE_E4', eighth],  # 3
    ['NOTE_FS4', eighth],  # 4#
    ['NOTE_C5', eighth],  # high 1
    ['NOTE_C5', 1.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_B4', quarter],  # 7

    # 梦美的太短暂
    ['0', eighth],
    ['NOTE_E4', eighth],  # 3
    ['NOTE_A4', eighth],  # 6
    ['NOTE_E5', eighth],  # high 3
    ['NOTE_E5', eighth],  # high 3
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_B5', 1.5 * eighth],  # high 7

    # 孟克桥上呐喊
    ['NOTE_B5', eighth],  # high 7
    ['NOTE_C6', eighth],  # high high 1
    ['NOTE_B5', eighth],  # high 7
    ['NOTE_E5', eighth],  # high 3
    ['NOTE_D5', 1.5 * eighth],  # high 2
    ['NOTE_E5', 0.5 * eighth],  # high 3
    ['NOTE_C5', quarter],  # high 1

    # 这世上的热闹
    ['0', eighth],  # 0
    ['NOTE_C5', eighth],  # high 1
    ['NOTE_B4', eighth],  # 7
    ['NOTE_C5', eighth],  # high 1
    ['NOTE_E5', 1.5 * eighth],  # high 3
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_A4', quarter],  # 6

    # 出自孤单
    ['0', eighth],  # 0
    ['NOTE_E4', eighth],  # 3
    ['NOTE_C5', 1.5 * eighth],  # high 1
    ['NOTE_B5', 0.5 * eighth],  # high 7
    ['NOTE_A4', 2 * quarter],  # 6

    """
        花园流淌的阳光，空气摇曳的花香；
        我请莫内帮个忙，能不能来张自画像；  
        大师眺望着远方，研究色彩的形状；
        突然回头要我说说，我对自己的印象;
    """
    # ----------- rap  ----------
    # 我请莫内帮个忙
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1

    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1

    # 能不能来张自画像
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1

    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['0', 0.5 * eighth],  # high 0

    # --
    # 大师眺望着远方
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1

    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['0', 0.5 * eighth],  # high 0

    # 研究色彩的形状
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1

    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['0', 0.5 * eighth],  # high 0

    # ---
    # 突然回头要我说说
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1

    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1

    # 我对自己的印象
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1

    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_AS4', 0.5 * eighth],  # 6#

    # rap
    # 时代的狂
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_D5', 0.5 * eighth],  # high 2
    # 音乐的王
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_D5', 0.5 * eighth],  # high 2
    # 万物臣服在我乐章
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_D5', 0.5 * eighth],  # high 2

    # 路还在闯
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_D5', 0.5 * eighth],  # high 2
    # 我还在创
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_D5', 0.5 * eighth],  # high 2
    # 指尖的旋律在渴望
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_D5', 0.5 * eighth],  # high 2

    # 时代的狂
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_D5', 0.5 * eighth],  # high 2
    # 音乐的王
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_AS4', 0.5 * eighth],  # 6#
    ['NOTE_D5', 0.5 * eighth],  # high 2
    # 我想我不需要画框
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A4', 0.5 * eighth],  # 6
    # 他框不住琴键的速度
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_D4', 0.5 * eighth],  # 2
    ['NOTE_A4', 0.5 * eighth],  # 6
    # 我的音符全部是未来艺术
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A4', 0.5 * eighth],  # 6
    ['NOTE_A4', 0.5 * eighth],  # 6

    # ----------------------------- 第一段小高潮  2022年7月18日12:28:48----------------
    # 小船静静往返
    ['0', eighth],          # 0
    ['NOTE_E4', eighth],     # 3
    ["NOTE_A4", eighth],          # 6
    ["NOTE_E5", eighth],          # high 3
    ['NOTE_E5', 1.5 * eighth],    # high 3
    ['NOTE_D5', 0.5 * eighth],    # high 2
    ['NOTE_F5', quarter],         # high 4

    # 马蹄斯的海岸
    ['0', eighth],          # 0
    ['NOTE_E4', eighth],          # 3
    ['NOTE_GS4', eighth],         # 5#
    ['NOTE_D5', eighth],            # high 2
    ['NOTE_D5', 1.5 * eighth],      # high 2
    ['NOTE_C5', 0.5 * eighth],            # high 1
    ['NOTE_E5', quarter],             # high 3

    # 星空下的夜晚
    ['0', eighth],
    ['NOTE_E4', eighth],      # 3
    ['NOTE_A4', eighth],      # 6
    ['NOTE_C5', eighth],      # high 1
    ['NOTE_C5', eighth],      # high 1
    ['NOTE_B4', 0.5 * eighth],        # 7
    ['NOTE_D5', quarter],     # high 2

    # 交给梵谷点燃
    ['0', eighth],
    ['NOTE_E4', eighth],      # 3
    ['NOTE_FS4', eighth],      # 4#
    ['NOTE_C5', eighth],        # high 1
    ['NOTE_C5', 1.5 * eighth],        # high 1
    ['NOTE_D5', 0.5 * eighth],     # high 2
    ['NOTE_B4', quarter],     # 7

    # 梦美的太短暂
    ['0', eighth],
    ['NOTE_E4', eighth],        # 3
    ['NOTE_A4', eighth],      # 6
    ['NOTE_E5', eighth],      # high 3
    ['NOTE_E5', eighth],       # high 3
    ['NOTE_D5', 0.5 * eighth],     # high 2
    ['NOTE_D5', 0.5 * eighth],     # high 2
    ['NOTE_B5', 1.5 * eighth],     # high 7

    # 孟克桥上呐喊
    ['NOTE_B5', eighth],      # high 7
    ['NOTE_C6', eighth],      # high high 1
    ['NOTE_B5', eighth],      # high 7
    ['NOTE_E5', eighth],      # high 3
    ['NOTE_D5', 1.5 * eighth],    # high 2
    ['NOTE_E5', 0.5 * eighth],        # high 3
    ['NOTE_C5', quarter],     # high 1

    # 这世上的热闹
    ['0', eighth],      # 0
    ['NOTE_C5', eighth],      # high 1
    ['NOTE_B4', eighth],      # 7
    ['NOTE_C5', eighth],      # high 1
    ['NOTE_E5', 1.5 * eighth],      # high 3
    ['NOTE_D5', 0.5 * eighth],    # high 2
    ['NOTE_A4', quarter],     # 6

    # 出自孤单
    ['0', eighth],      # 0
    ['NOTE_E4', eighth],      # 3
    ['NOTE_C5', 1.5 * eighth],        # high 1
    ['NOTE_B5', 0.5 * eighth],        # high 7
    ['NOTE_A4', 2 * quarter],     # 6

    # ------------------ 重复后面半段 ---------------
    # 梦美的太短暂
    ['0', eighth],          # 0
    ['NOTE_E4', eighth],     # 3
    ["NOTE_A4", eighth],          # 6
    ["NOTE_C5", eighth],          # high 1
    ['NOTE_E5', 1.5 * eighth],    # high 3
    ['NOTE_D5', 0.5 * eighth],    # high 2
    ['NOTE_F5', quarter],         # high 4

    # 孟克桥上呐喊
    ['0', eighth],  # 0
    ['NOTE_E4', eighth],  # 3
    ['NOTE_B4', eighth],  # 7
    ['NOTE_D5', eighth],  # high 2
    ['NOTE_D5', 1.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_E5', quarter],  # high 3

    # 这世上的热闹
    ['0', eighth],
    ['NOTE_E4', eighth],  # 3
    ['NOTE_A4', eighth],  # 6
    ['NOTE_C5', eighth],  # high 1
    ['NOTE_C5', eighth],  # high 1
    ['NOTE_B4', 0.5 * eighth],  # 7
    ['NOTE_D5', quarter],  # high 2

    # 出自孤单
    ['NOTE_E4', eighth],       # 3
    ['NOTE_C5', 1.5 * eighth],     # high 1
    ['NOTE_B4', 0.5 * eighth],     # 7
    ['NOTE_A4', quarter],     # 6
    ['0', quarter],           # 0

    # ---------------- 最后再来一遍 --------------
    # 小船静静往返
    ['0', eighth],  # 0
    ['NOTE_E4', eighth],  # 3
    ["NOTE_A4", eighth],  # 6
    ["NOTE_C5", eighth],  # high 1
    ['NOTE_E5', 1.5 * eighth],  # high 3
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_F5', quarter],  # high 4

    # 马蹄斯的海岸
    ['0', eighth],  # 0
    ['NOTE_E4', eighth],  # 3
    ['NOTE_GS4', eighth],  # 5#
    ['NOTE_D5', eighth],  # high 2
    ['NOTE_D5', 1.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_E5', quarter],  # high 3

    # 星空下的夜晚
    ['0', eighth],
    ['NOTE_E4', eighth],  # 3
    ['NOTE_A4', eighth],  # 6
    ['NOTE_C5', eighth],  # high 1
    ['NOTE_C5', 1.5 * eighth],  # high 1
    ['NOTE_B4', 0.5 * eighth],  # 7
    ['NOTE_D5', quarter],  # high 2

    # 交给梵谷点燃
    ['0', eighth],
    ['NOTE_E4', eighth],  # 3
    ['NOTE_FS4', eighth],  # 4#
    ['NOTE_C5', eighth],  # high 1
    ['NOTE_C5', 1.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_B4', quarter],  # 7

    # 梦美的太短暂
    ['0', eighth],
    ['NOTE_E4', eighth],  # 3
    ['NOTE_B4', eighth],  # 7
    ['NOTE_D5', eighth],  # high 2
    ['NOTE_E5', 1.5 * eighth],  # high 3
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_B5', quarter],  # high 7

    # 孟克桥上呐喊
    ['0', eighth],  # 0
    ['NOTE_C6', eighth],  # high high 1
    ['NOTE_B5', eighth],  # high 7
    ['NOTE_E5', eighth],  # high 3
    ['NOTE_D5', quarter],  # high 2
    ['NOTE_C5', quarter],  # high 1

    # 这世上的热闹
    ['0', eighth],  # 0
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_B4', eighth],  #  7
    ['NOTE_C5', 0.5 * eighth],  # high 1
    ['NOTE_E5', 1.5 * eighth],  # high 3
    ['NOTE_D5', 0.5 * eighth],  # high 2
    ['NOTE_A4', 1.5 * quarter],  # 6

    # 出自孤单
    ['0', eighth],  # 0
    ['NOTE_E4', eighth],  # 3
    ['NOTE_C5', 1.5 * eighth],  # high 1
    ['NOTE_B4', 0.5 * eighth],  # 7
    ['NOTE_A4', 2 * quarter],  # 6
]
